package com.neusoft.yuejian_6.service;

import com.neusoft.yuejian_6.javabean.Activity;
import com.neusoft.yuejian_6.javabean.Apply;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ActivityService {
    @GET("Activity/getActivity")
    Call<List<Activity>> getAllActivities();

    @GET("Activity/Activitydetail")
    Call<Activity> getActivityById(
            @Query("activity_id") int activity_id

    );
    //报名活动
    @GET("Apply/addApply")
    Call<Apply> addactivityn(@Query("user_id") int user_id,
                             @Query("activity_id") int activity_id);


    //培训详情
    @GET("Activity/getActivitydetail")
    Call<Activity> getDetail(@Query("activity_id") int activity_id);

}
